﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using POSSystem.DAL;

namespace POSSystem.BLL
{
    public class Networks : _Networks
    {
        public static Networks GetAllActiveNetworks()
        {
            Networks net = new Networks();
            net.Where.BranchID.Value = Branches.CurrentBranchID;
            net.Where.Deleted.Value = false;
            net.Query.Load();

            return net;
        }

        public static Networks GetAllActiveNetworks(int branchID)
        {
            Networks net = new Networks();
            net.Where.BranchID.Value = branchID;
            net.Where.Deleted.Value = false;
            net.Query.Load();

            return net;
        }
    }
}
